package model;

public class Record {
	private int id;
	private int uid;
	private int rid;
	private String rentTime;
	private String returnTime;
	private String name;//用于RecordDao中的 getRecordsByUid构建数组
	
	
	public Record(){}
	public Record(int uid, int rid, String rentTime, String returnTime) {
		this.uid = uid;
		this.rid = rid;
		this.rentTime = rentTime;
		this.returnTime = returnTime;
	}
	
	public Record(int rid, String rentTime, String returnTime) {
	    this(0,rid, rentTime, returnTime);
	}
	

    public int getId() {return id;}
	public void setId(int id) {this.id = id;}
	
	public int getUid() {return uid;}
	public void setUid(int uid) {this.uid = uid;}
	
	public void  setRid(int rid) {this.rid = rid;}
	public int	getRid() {return rid;}

	public String getRentTime() {return rentTime;}
	public void setRentTime(String rentTime) {this.rentTime = rentTime;}
	
	public String getReturnTime() {return returnTime;}
	public void setReturnTime(String returnTime) {this.returnTime = returnTime;}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

}
